<template>
    <div>
        <h1>{{user.loginName}}, 欢迎进入控制台</h1>
    </div>
</template>
<script>
  export default {
    name: "welcome",
    data() {
    return {
      user: {},
    };
  },

     mounted: function() {
       let _this = this
        // 调用父组件的activeSidebar方法
        // this.$parent.activeSidebar("welcome-sidebar")
      _this.user = SessionStorage.get(SESSION_KEY_USER)
    },
  }
</script>